package com.gaofans.vertx.boot.web.exception;

import io.vertx.core.Handler;
import io.vertx.ext.web.RoutingContext;

/**
 * @author GaoFans
 */
public class ExceptionHandlerDefinition {

    private Handler<RoutingContext> handler;

    private Class<? extends Throwable>[] causes;

    private int code;

    public Handler<RoutingContext> getHandler() {
        return handler;
    }

    public void setHandler(Handler<RoutingContext> handler) {
        this.handler = handler;
    }

    public Class<? extends Throwable>[] getCauses() {
        return causes;
    }

    public void setCauses(Class<? extends Throwable>[] causes) {
        this.causes = causes;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
